package ticketingsystem;

import java.util.concurrent.atomic.AtomicLong;

public class AtomicBitSet {
    private AtomicLong bits;
    long b0, b1, b2, b3, b4, b5, b6;
    public AtomicBitSet(final int nbit){
        bits = new AtomicLong(0);
    }

    public boolean compareAndSet(long expectedValue, long newValue){
        return bits.compareAndSet(expectedValue, newValue);
    }

    public long get(){
        return bits.get();
    }
}
